package com.mioto.ld.module.personal.model;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.mioto.ld.component.BaseModel;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 用户信息实体
 * @author mioto
 * @date 2024-05-09 09:30:37
 */
@Data
@ApiModel(value = "用户信息")
public class User extends BaseModel implements Serializable{

    private static final long serialVersionUID=User.class.getName().hashCode();
    

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "账号")
    private String username;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "所属机构id")
    private Integer organizationId;

    @ApiModelProperty(value = "状态  0-禁用 1-启用")
    private Integer status;

    @ApiModelProperty(value = "用户类型 1-web 2-app")
    private Integer userType;

    @ApiModelProperty(value = "用户头像文件id")
    private String  fileId;
    
}